
const url = 'http://localhost:80/'

//批量放置url

const urls = class{
	static m(){
		// 注册接口
		const register = `${url}register/`
		// 登录接口
		const login = `${url}adminLogin`
		// 修改密码
		const modifyPassword = `${url}admin/modifyPassword`
		//修改管理员信息
		const modifyInfo = `${url}admin/modifyInfo`
		// 获取商家信息
		const obtainshop = `${url}obtainshop/`
		// 上传图片接口
		const uploadres = `${url}admin/dish/uploadImage`
		// 上传商家信息
		const uploadshop = `${url}uploadshop/`
		// 修改商家信息
		const modifyshop = `${url}modifyshop/`
		// 获取餐品类目
		const obtaincate = `${url}admin/category/list`
		// 获取所有类目
		const listAllcategory=`${url}admin/category/listAll`
		// 添加类目
		const addcategory = `${url}admin/category/add`
		// 添加类目
		const deleteCategory = `${url}admin/category/delete`
		// 获取餐品
		const obtaindishes = `${url}admin/dish/list`
		// 获取餐品单位
		const obtainunit = `${url}admin/unit/listAll`
		// 添加餐品单位
		const dishunit = `${url}admin/unit/add`
		// 上架餐品
		const uploaddishes = `${url}admin/dish/save`
		// 删除餐品
		const dishDelete = `${url}admin/dish/delete`
		// 修改上架的餐品
		const modifydishes = `${url}modifydishes/`
		// 下架/上架餐品
		const fromsale = `${url}admin/dish/updateOnSale`
		// 获取订单
		const obtainorder = `${url}admin/order/list`

		// 查看详细菜单
		const vieworder = `${url}admin/orderDetail/list`
		// 修改订单状态
		const updateStatus = `${url}admin/order/updateStatus`
		// 接单
		const receiving = `${url}admin/order/receiving`
		// 结账
		const checkout = `${url}admin/order/checkout`
		// 桌号管理
		const qrcode = `${url}admin/table/add`
		// 获取桌号
		const getqrcode = `${url}admin/table/list`
		// 删除桌号
		const tableDelete = `${url}admin/table/delete`
		// 数据分析：七天销售额
		const salesvolume = `${url}admin/order/salesvolume`
		return{
			register,
			modifyInfo,
			login,
			obtainshop,
			uploadres,
			uploadshop,
			modifyshop,
			obtaincate,
			listAllcategory,
			deleteCategory,
			addcategory,
			obtaindishes,
			dishDelete,
			obtainunit,
			dishunit,
			uploaddishes,
			modifydishes,
			fromsale,
			obtainorder,
			vieworder,
			updateStatus,
			receiving,
			checkout,
			qrcode,
			getqrcode,
			tableDelete,
			salesvolume,
			modifyPassword
		}
	}
}
export default urls
